package com.explore.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author gaolainan
 * @since 2021-04-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Recruitment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String title;

    /**
     * 招聘职位的信息
     */
    private String recruitmentInfo;

    /**
     * 招聘职位要求
     */
    private String requirement;

    /**
     * 学历的要求
     */
    private String education;

    /**
     * 人数的要求
     */
    private Integer needNum;

    /**
     * 工作经验
     */
    private String experience;

    private String workCity;

    /**
     * 招聘的类型
     * 1-实习 2-社招 0-校招
     */
    private Integer requireStatus;


    /**
     * 最低薪水
     */
    private String salaryDown;

    /**
     * 最高的薪水
     */
    private String salaryUp;

    /**
     * 截止日期
     */
    private LocalDateTime releaseDate;

    /**
     * 表示是否是校招
     */
    private Integer isSchool;


    private Integer departmentId;

    /**
     * hr发布人的id
     */
    private Integer humanSourceId;

    private Integer companyId;

    @Version
    private Integer version;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(fallbackPatterns = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime updateTime;


}
